package com.top4create.model;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

import javax.xml.bind.annotation.XmlRootElement;

import com.top4create.face.FavouratePicture;


public class Pictorial   implements Serializable {
    private Long id;
    private Company company;
    private String path;
    private Set<FavouratePicture> favouratePictures = new HashSet<FavouratePicture>(0);

  
    public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }

    public Company getCompany() {
        return this.company;
    }
    
    public void setCompany(Company company) {
        this.company = company;
    }
   

    public String getPath() {
        return this.path;
    }
    
    public void setPath(String path) {
        this.path = path;
    }

    public Set<FavouratePicture> getFavouratePictures() {
        return this.favouratePictures;
    }
    
    public void setFavouratePictures(Set<FavouratePicture> favouratePictures) {
        this.favouratePictures = favouratePictures;
    }

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Pictorial pojo = (Pictorial) o;

        if (company != null ? !company.equals(pojo.company) : pojo.company != null) return false;
        if (path != null ? !path.equals(pojo.path) : pojo.path != null) return false;

        return true;
    }

    public int hashCode() {
        int result = 0;
        result = (company != null ? company.hashCode() : 0);
        result = 31 * result + (path != null ? path.hashCode() : 0);

        return result;
    }

    public String toString() {
        StringBuffer sb = new StringBuffer(getClass().getSimpleName());

        sb.append(" [");
        sb.append("id").append("='").append(getId()).append("', ");
        sb.append("company").append("='").append(getCompany()).append("', ");
        sb.append("path").append("='").append(getPath()).append("', ");
        
        sb.append("]");
      
        return sb.toString();
    }

}
